<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
<#if list?exists>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span>业务列表</strong></div>
	<table class="table table-hover text-center">
      <tr>
        <th>标题</th>       
        <th>内容</th>
        <th>操作</th>       
      </tr>
      	<#list list as homeYeWu>      
        <tr>
          <td>${homeYeWu.title}</td>
          <td style="width: 60%;">${homeYeWu.getSubContent()}...</td>
          <td>
	          <div class="button-group"> 
		          <a type="button" class="button border-main" href="/updateYeWu.html?id=${homeYeWu.id}"><span class="icon-edit"></span>修改</a>
		          <a class="button border-red" onClick="return confirm('确定要删除吗？');" href="/deleteYeWu.html?id=${homeYeWu.id}"><span class="icon-trash-o"></span> 删除</a> 
	          </div>
          </td>
        </tr>
        </#list>
    </table>  
</div>
<br>
</#if>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 单页信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="/addHomeYeWu.html">      
      <div class="form-group">
        <div class="label">
          <label>标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="title" value="" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>内容：</label>
        </div>
        <div class="field">
          <textarea name="content" style="height: 200px;"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>